#include "sys_param.h"
#include "language.h"

SystemParam_t g_tSystemParam = {
    .szDevName = "STM32",
    .sleepFun = 0,
    .powerOffFun = 0,
    .sleepTime = 5,
    .powerOffTime = 5 * 60,
};

cotParamInfo_t g_ParamTable[SYSTME_PARAM_NUM] = {
    COT_PARAM_ITEM_BIND_WITH_NAME(1, TEXT_DEV_NAME, g_tSystemParam.szDevName, COT_PARAM_STRING, COT_PARAM_ATTR_READ, "STM32", 1, 7),
    COT_PARAM_ITEM_BIND_WITH_NAME(2, TEXT_AUTO_SLEEP_FUN, g_tSystemParam.sleepFun, COT_PARAM_UINT8, COT_PARAM_ATTR_WR, 0, 0, 1),
    COT_PARAM_ITEM_BIND_WITH_NAME(3, TEXT_AUTO_SLEEP_TIME, g_tSystemParam.sleepTime, COT_PARAM_UINT16, COT_PARAM_ATTR_WR, 5, 0, 100),
    COT_PARAM_ITEM_BIND_WITH_NAME(4, TEXT_AUTO_POWER_OFF_FUN, g_tSystemParam.powerOffFun, COT_PARAM_UINT8, COT_PARAM_ATTR_WR, 0, 0, 1),
    COT_PARAM_ITEM_BIND_WITH_NAME(5, TEXT_AUTO_POWER_OFF_TIME, g_tSystemParam.powerOffTime, COT_PARAM_UINT16, COT_PARAM_ATTR_WR, 300, 60, 6000),
};

